import java.io.*;
import java.lang.Math;
class Card{  
    char color;
    String a;
    public Card(char x,String y)
    {
        color=x;
        a=y;
    }
    public Card(){
        }
}
public class Main {
	public static boolean fac(int x[],int y)
	{
		int i;
		for(i=0;i<x.length;i++)
			if(x[i]==y)
				return false;
		return true;

	}
	public static void main(String[] args) {
		int i,k,j=0,p=0;
		int d[]=new int[52];
	    Card m[]=new Card[52];
	    Card n=null;
	    String q[]= {"2","3","4","5","6","7","8","9","10","J","Q","K","A"};
	    char h[] = {'♣', '♦', '♥', '♠'};
	    for(i=0;i<52;i++)
	    	d[i]=100;
	    for(i=0;i<52;i++)
	    {
	        m[i]=new Card();
	        m[i].a=q[p];
	        if((j+1)%4==0)
	        {
	        	m[i].color=h[j];
	        	j=0;        	
	        }
	        else
	        {
	        	m[i].color=h[j];
	        	j++;
	        }
	        if((i+1)%4==0)
	        	p++;
	    }
	    for(i=0;i<52;i++)
	    {
	        if(i<51)
	        System.out.print(m[i].color+m[i].a+",");
	        if(i==51)
	        System.out.print(m[i].color+m[i].a);
	    }
	    System.out.println();
	    for(i=0;i<52;i++)
	    {
	        k=(int)(Math.random()*100);
	        if(k<52&&fac(d,k))
        	    {
	        		n=m[i];
	        		m[i]=m[k];
	        		m[k]=n;
        	    }
	        else
	             i--;
	    }
	   for(i=0;i<52;i++)
	    {
	        if(i<51)
	        System.out.print(m[i].color+m[i].a+",");
	        if(i==51)
	        System.out.print(m[i].color+m[i].a);
	    }
	}
}